package org.springblade.modules.repair.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springblade.core.mp.base.BaseService;
import org.springblade.modules.repair.entity.PlanHistoryImage;

import java.util.List;

public interface PlanHistoryImageService extends BaseService<PlanHistoryImage> {
	Boolean saveAllImage(List<PlanHistoryImage> entityList);

    IPage<PlanHistoryImage> selectPage(IPage<PlanHistoryImage> page, PlanHistoryImage entity);

    List<PlanHistoryImage> selectList(PlanHistoryImage entity);

	PlanHistoryImage selectDetail(Long id, String url);

	/**
	 * 根据工单id清理废弃图片
	 * @param planId
	 * @return
	 */
	Boolean removeByPlan(Long planId);
}
